<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript">
    $(document).ready(function() {
        var loading = '-';
        function loadPage() {
            Page.postJSON({
                json: { cmd: RequestCmd.DEVICE_VERSION_INFO },
                success: function(datas) {
                    
                    var names = [];
                    var device = DOC.device;
                    names.push(device.name);
                    names.push(device.softwarVersion);
                    names.push(device.hardwareVersion);
                    names.push(device.configVersion);
					
					if(Page.Level == 1){
						names.push(device.inlinesoftVersion);
						names.push(device.gitBranch);
						names.push(device.gitCommit);
						names.push(device.buildTime);
                    //   names.push(device.deviceId);
                    }


                    Page.isNULLToSpace = true;
                    var data2 = datas.data;
                    var values = [];

                    values.push(data2.version.type || loading);
                   
                    values.push(data2.version.software_version || loading);
                    values.push(data2.version.hwversion || loading);
                    values.push(data2.version.config_version || loading);
					if(Page.Level == 1){
						values.push(data2.version.inline_soft_version || loading);
						values.push(data2.version.branch || loading);
						values.push(data2.version.sha1 || loading);
						values.push(data2.version.build || loading);
					}



                    var sys_html = Page.createTable(DOC.title.device, names, values, names.length, 2).replace("<td>", "<td style=\"width:32%;\">");

                    $('#sys_info').html(sys_html);
                    Page.setStripeTable();
                    Page.isNULLToSpace = false;
                }
            });
        }

        loadPage();
    });
</script>

<div class="detail_box">
    <div id="sys_info"></div>
</div>